package com.ruoyi.worker.service.impl;

import com.ruoyi.worker.domain.Suggest;
import com.ruoyi.worker.mapper.SuggestMapper;
import com.ruoyi.worker.service.SuggestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName SuggestServiceImpl
 * @Description
 * @Author leizhang
 * Date 2021/9/3 4:49 下午
 * @Version 1.0
 **/
@Service
public class SuggestServiceImpl implements SuggestService {
    @Autowired
    private SuggestMapper suggestMapper;
    @Override
    public List<Suggest> getSuggestList(Suggest suggest) {
        return suggestMapper.getSuggestList(suggest);
    }

    @Override
    public int updateStatus( Map<String,Object> requestParam){
        return    suggestMapper.updateStatus(requestParam);
    }

    @Override
    public List<String> getImg(int id) {
       return suggestMapper.getImgs(id);
    }
}
